home *** CD-ROM | disk | FTP | other *** search
/ PC Shareware 1997 April / PC Shareware 1997-04.iso / programy / happy / happy.bat next >
Encoding:
DOS Batch File  |  1996-11-28  |  1.7 KB  |  52 lines

  1. @echo off
  2. cls
  3. echo . Installing HAPPY BUTTON for Windows95
  4. echo .
  5. echo . COMPATIBILITY TEST - Please note the size of the file displayed below
  6. echo .
  7. echo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  8. dir %winbootdir%\system\user.exe
  9. echo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  10. echo .
  11. choice /c:YN /n ". Does the size of the file listed amount to 462,112 bytes ? "
  12. if errorlevel 2 goto DIFF
  13. if errorlevel 1 goto YES
  14. :DIFF
  15. echo .
  16. echo . NO ! Installation Halted
  17. echo .
  18. echo .   Your installation of Windows95 may not be compatible with
  19. echo .   HappyButton.  If you proceed with the installation, Windows may
  20. echo .   behave unpredictably or fail to load at all.  If this happens, you
  21. echo .   may still uninstall HappyButton by running UNINSTAL from Windows OR
  22. echo .   by running UNHAPPY in MS-DOS mode.
  23. echo .
  24. choice /c:YN /n ". Proceed with installation despite this warning ? "
  25. if errorlevel 2 goto NO
  26. if errorlevel 1 goto YES
  27. :NO
  28. echo .
  29. echo . NO ! Installation ABORTED
  30. echo .
  31. echo .   All is not lost ! If you STILL strongly desire to change the icon
  32. echo .   on your Windows95 START button, you can just ASK how to do it.
  33. echo .
  34. echo .      e-mail : spot@null.net
  35. echo .         WWW : http://www.geocities.com/Athens/6508/
  36. echo .
  37. choice /c:X /n ". Press X to Return to Windows95"
  38. goto END
  39. :YES
  40. echo .
  41. echo . YES ! Installing HappyButton
  42. echo .
  43. echo .   Backup of %winbootdir%\SYSTEM\USER.EXE as USER_EXE.BAK
  44. copy %winbootdir%\system\user.exe %winbootdir%\system\user_exe.bak /y >nul
  45. echo .
  46. echo .   Copying USER.EX_ to %winbootdir%\SYSTEM\USER.EXE
  47. copy user.ex_ %winbootdir%\system\user.exe /y >nul
  48. echo .
  49. echo . DONE ! Restarting Windows95
  50. :END
  51. echo .
  52.